@extends("/mall_template",menu="mall")
@import com.mgfireworks.mgplatform.mgshop.model.*
@args List<Product> productList
<div class="mui-content">
	<div class="mui-segmented-control mui-segmented-control-negative">
		<a class="mui-control-item mui-active" href="#item1">
			价格
		</a>
		<a class="mui-control-item" href="#item2">
			销量
		</a>
		<a class="mui-control-item" href="#item3">
			时间
		</a>
	</div>

	<div id="mall-item-package" class="mui-control-content mui-active">
		<ul class="mui-table-view product-list">
		@if(productList){
			@for(Product p :productList){
			<li class="mui-table-view-cell mui-media">
				<a class="mui-pull-left" href="@url("/p")/@(p.getStockId()).html">
					<img src="@p.getMainImg()">
				</a>
				<div class="mui-media-body product-list-info">
					@p.getProductName()<br />
					品牌：@p.getBandName()<br />
					价格：@p.getPrice()元<br />
					<button type="button" class="mui-btn mui-btn-success">
						加入购物车
					</button>
				</div>
			</li>
			}}
		</ul>
	</div>
</div>